package com.cqie.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 病案信息
 * </p>
 *
 * @author 不吃海鲜
 * @since 2024-12-25
 */
@Getter
@Setter
@TableName("case_info")
@ApiModel(value = "CaseInfo对象", description = "病案信息")
public class CaseInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("病例id")
    @TableId(value = "case_id", type = IdType.AUTO)
    private Integer caseId;

    @ApiModelProperty("病例号")
    @TableField("case_code")
    private String caseCode;

    @ApiModelProperty("病人id")
    @TableField("patient_id")
    private Integer patientId;

    @ApiModelProperty("病人姓名")
    @TableField("patient_name")
    private String patientName;

    @ApiModelProperty("病人性别")
    @TableField("patient_sex")
    private String patientSex;

    @ApiModelProperty("患者年龄")
    @TableField("patient_age")
    private String patientAge;

    @ApiModelProperty("诊断结果")
    @TableField("case_result")
    private String caseResult;

    @ApiModelProperty("是否开药(0-未开药 1-已开药)")
    @TableField("is_prescribe")
    private String isPrescribe;

    @ApiModelProperty("医生id")
    @TableField("doctor_id")
    private Integer doctorId;

    @ApiModelProperty("医生姓名")
    @TableField("doctor_name")
    private String doctorName;

    @ApiModelProperty("医生所属科室名称")
    @TableField("doctor_department_name")
    private String doctorDepartmentName;

    @ApiModelProperty("就诊时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("作废标志")
    @TableField("rm_sign")
    private String rmSign;
}
